<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>LCOV - code analysis - /usr/include/boost/function/function_base.hpp</title>
  <link rel="stylesheet" type="text/css" href="../../../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LCOV - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
          <tr>
            <td width="10%" class="headerItem">Current view:</td>
            <td width="35%" class="headerValue"><a href="../../../../index.html">top level</a> - <a href="index.html">usr/include/boost/function</a> - function_base.hpp<span style="font-size: 80%;"> (source / <a href="function_base.hpp.func-sort-c.html">functions</a>)</span></td>
            <td width="5%"></td>
            <td width="15%"></td>
            <td width="10%" class="headerCovTableHead">Hit</td>
            <td width="10%" class="headerCovTableHead">Total</td>
            <td width="15%" class="headerCovTableHead">Coverage</td>
          </tr>
          <tr>
            <td class="headerItem">Test:</td>
            <td class="headerValue">code analysis</td>
            <td></td>
            <td class="headerItem">Lines:</td>
            <td class="headerCovTableEntry">18</td>
            <td class="headerCovTableEntry">48</td>
            <td class="headerCovTableEntryLo">37.5 %</td>
          </tr>
          <tr>
            <td class="headerItem">Date:</td>
            <td class="headerValue">2020-09-11 22:50:33</td>
            <td></td>
            <td class="headerItem">Functions:</td>
            <td class="headerCovTableEntry">3</td>
            <td class="headerCovTableEntry">8</td>
            <td class="headerCovTableEntryLo">37.5 %</td>
          </tr>
          <tr>
            <td class="headerItem">Legend:</td>
            <td class="headerValueLeg">            Lines:
            <span class="coverLegendCov">hit</span>
            <span class="coverLegendNoCov">not hit</span>
</td>
            <td></td>
          </tr>
          <tr><td><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
        </table>
      </td>
    </tr>

    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td>
<pre class="sourceHeading">          Line data    Source code</pre>
<pre class="source">
<a name="1"><span class="lineNum">       1 </span>            : // Boost.Function library</a>
<span class="lineNum">       2 </span>            : 
<span class="lineNum">       3 </span>            : //  Copyright Douglas Gregor 2001-2006
<span class="lineNum">       4 </span>            : //  Copyright Emil Dotchevski 2007
<span class="lineNum">       5 </span>            : //  Use, modification and distribution is subject to the Boost Software License, Version 1.0.
<span class="lineNum">       6 </span>            : //  (See accompanying file LICENSE_1_0.txt or copy at
<span class="lineNum">       7 </span>            : //  http://www.boost.org/LICENSE_1_0.txt)
<span class="lineNum">       8 </span>            : 
<span class="lineNum">       9 </span>            : // For more information, see http://www.boost.org
<span class="lineNum">      10 </span>            : 
<span class="lineNum">      11 </span>            : #ifndef BOOST_FUNCTION_BASE_HEADER
<span class="lineNum">      12 </span>            : #define BOOST_FUNCTION_BASE_HEADER
<span class="lineNum">      13 </span>            : 
<span class="lineNum">      14 </span>            : #include &lt;stdexcept&gt;
<span class="lineNum">      15 </span>            : #include &lt;string&gt;
<span class="lineNum">      16 </span>            : #include &lt;memory&gt;
<span class="lineNum">      17 </span>            : #include &lt;new&gt;
<span class="lineNum">      18 </span>            : #include &lt;boost/config.hpp&gt;
<span class="lineNum">      19 </span>            : #include &lt;boost/detail/sp_typeinfo.hpp&gt;
<span class="lineNum">      20 </span>            : #include &lt;boost/assert.hpp&gt;
<span class="lineNum">      21 </span>            : #include &lt;boost/integer.hpp&gt;
<span class="lineNum">      22 </span>            : #include &lt;boost/type_traits/has_trivial_copy.hpp&gt;
<span class="lineNum">      23 </span>            : #include &lt;boost/type_traits/has_trivial_destructor.hpp&gt;
<span class="lineNum">      24 </span>            : #include &lt;boost/type_traits/is_const.hpp&gt;
<span class="lineNum">      25 </span>            : #include &lt;boost/type_traits/is_integral.hpp&gt;
<span class="lineNum">      26 </span>            : #include &lt;boost/type_traits/is_volatile.hpp&gt;
<span class="lineNum">      27 </span>            : #include &lt;boost/type_traits/composite_traits.hpp&gt;
<span class="lineNum">      28 </span>            : #include &lt;boost/type_traits/ice.hpp&gt;
<span class="lineNum">      29 </span>            : #include &lt;boost/ref.hpp&gt;
<span class="lineNum">      30 </span>            : #include &lt;boost/mpl/if.hpp&gt;
<span class="lineNum">      31 </span>            : #include &lt;boost/detail/workaround.hpp&gt;
<span class="lineNum">      32 </span>            : #include &lt;boost/type_traits/alignment_of.hpp&gt;
<span class="lineNum">      33 </span>            : #ifndef BOOST_NO_SFINAE
<span class="lineNum">      34 </span>            : #  include &quot;boost/utility/enable_if.hpp&quot;
<span class="lineNum">      35 </span>            : #else
<span class="lineNum">      36 </span>            : #  include &quot;boost/mpl/bool.hpp&quot;
<span class="lineNum">      37 </span>            : #endif
<span class="lineNum">      38 </span>            : #include &lt;boost/function_equal.hpp&gt;
<span class="lineNum">      39 </span>            : #include &lt;boost/function/function_fwd.hpp&gt;
<span class="lineNum">      40 </span>            : 
<span class="lineNum">      41 </span>            : #if defined(BOOST_MSVC)
<span class="lineNum">      42 </span>            : #   pragma warning( push )
<span class="lineNum">      43 </span>            : #   pragma warning( disable : 4793 ) // complaint about native code generation
<span class="lineNum">      44 </span>            : #   pragma warning( disable : 4127 ) // &quot;conditional expression is constant&quot;
<span class="lineNum">      45 </span>            : #endif       
<span class="lineNum">      46 </span>            : 
<span class="lineNum">      47 </span>            : // Define BOOST_FUNCTION_STD_NS to the namespace that contains type_info.
<span class="lineNum">      48 </span>            : #ifdef BOOST_NO_STD_TYPEINFO
<span class="lineNum">      49 </span>            : // Embedded VC++ does not have type_info in namespace std
<span class="lineNum">      50 </span>            : #  define BOOST_FUNCTION_STD_NS
<span class="lineNum">      51 </span>            : #else
<span class="lineNum">      52 </span>            : #  define BOOST_FUNCTION_STD_NS std
<span class="lineNum">      53 </span>            : #endif
<span class="lineNum">      54 </span>            : 
<span class="lineNum">      55 </span>            : // Borrowed from Boost.Python library: determines the cases where we
<span class="lineNum">      56 </span>            : // need to use std::type_info::name to compare instead of operator==.
<span class="lineNum">      57 </span>            : #if defined( BOOST_NO_TYPEID )
<span class="lineNum">      58 </span>            : #  define BOOST_FUNCTION_COMPARE_TYPE_ID(X,Y) ((X)==(Y))
<span class="lineNum">      59 </span>            : #elif defined(__GNUC__) \
<span class="lineNum">      60 </span>            :  || defined(_AIX) \
<span class="lineNum">      61 </span>            :  || (   defined(__sgi) &amp;&amp; defined(__host_mips))
<span class="lineNum">      62 </span>            : #  include &lt;cstring&gt;
<span class="lineNum">      63 </span>            : #  define BOOST_FUNCTION_COMPARE_TYPE_ID(X,Y) \
<span class="lineNum">      64 </span>            :      (std::strcmp((X).name(),(Y).name()) == 0)
<span class="lineNum">      65 </span>            : # else
<span class="lineNum">      66 </span>            : #  define BOOST_FUNCTION_COMPARE_TYPE_ID(X,Y) ((X)==(Y))
<span class="lineNum">      67 </span>            : #endif
<span class="lineNum">      68 </span>            : 
<span class="lineNum">      69 </span>            : #if defined(__ICL) &amp;&amp; __ICL &lt;= 600 || defined(__MWERKS__) &amp;&amp; __MWERKS__ &lt; 0x2406 &amp;&amp; !defined(BOOST_STRICT_CONFIG)
<span class="lineNum">      70 </span>            : #  define BOOST_FUNCTION_TARGET_FIX(x) x
<span class="lineNum">      71 </span>            : #else
<span class="lineNum">      72 </span>            : #  define BOOST_FUNCTION_TARGET_FIX(x)
<span class="lineNum">      73 </span>            : #endif // __ICL etc
<span class="lineNum">      74 </span>            : 
<span class="lineNum">      75 </span>            : #if !BOOST_WORKAROUND(__BORLANDC__, &lt; 0x5A0)
<span class="lineNum">      76 </span>            : #  define BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor,Type)              \
<span class="lineNum">      77 </span>            :       typename ::boost::enable_if_c&lt;(::boost::type_traits::ice_not&lt;          \
<span class="lineNum">      78 </span>            :                             (::boost::is_integral&lt;Functor&gt;::value)&gt;::value), \
<span class="lineNum">      79 </span>            :                            Type&gt;::type
<span class="lineNum">      80 </span>            : #else
<span class="lineNum">      81 </span>            : // BCC doesn't recognize this depends on a template argument and complains
<span class="lineNum">      82 </span>            : // about the use of 'typename'
<span class="lineNum">      83 </span>            : #  define BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor,Type)     \
<span class="lineNum">      84 </span>            :       ::boost::enable_if_c&lt;(::boost::type_traits::ice_not&lt;          \
<span class="lineNum">      85 </span>            :                    (::boost::is_integral&lt;Functor&gt;::value)&gt;::value), \
<span class="lineNum">      86 </span>            :                        Type&gt;::type
<span class="lineNum">      87 </span>            : #endif
<span class="lineNum">      88 </span>            : 
<span class="lineNum">      89 </span>            : namespace boost {
<span class="lineNum">      90 </span>            :   namespace detail {
<span class="lineNum">      91 </span>            :     namespace function {
<span class="lineNum">      92 </span>            :       class X;
<span class="lineNum">      93 </span>            : 
<span class="lineNum">      94 </span>            :       /**
<span class="lineNum">      95 </span>            :        * A buffer used to store small function objects in
<span class="lineNum">      96 </span>            :        * boost::function. It is a union containing function pointers,
<span class="lineNum">      97 </span>            :        * object pointers, and a structure that resembles a bound
<span class="lineNum">      98 </span>            :        * member function pointer.
<span class="lineNum">      99 </span>            :        */
<span class="lineNum">     100 </span>            :       union function_buffer
<span class="lineNum">     101 </span>            :       {
<span class="lineNum">     102 </span>            :         // For pointers to function objects
<span class="lineNum">     103 </span>            :         mutable void* obj_ptr;
<span class="lineNum">     104 </span>            : 
<span class="lineNum">     105 </span>            :         // For pointers to std::type_info objects
<span class="lineNum">     106 </span>            :         struct type_t {
<span class="lineNum">     107 </span>            :           // (get_functor_type_tag, check_functor_type_tag).
<span class="lineNum">     108 </span>            :           const detail::sp_typeinfo* type;
<span class="lineNum">     109 </span>            : 
<span class="lineNum">     110 </span>            :           // Whether the type is const-qualified.
<span class="lineNum">     111 </span>            :           bool const_qualified;
<span class="lineNum">     112 </span>            :           // Whether the type is volatile-qualified.
<span class="lineNum">     113 </span>            :           bool volatile_qualified;
<span class="lineNum">     114 </span>            :         } type;
<span class="lineNum">     115 </span>            : 
<span class="lineNum">     116 </span>            :         // For function pointers of all kinds
<span class="lineNum">     117 </span>            :         mutable void (*func_ptr)();
<span class="lineNum">     118 </span>            : 
<span class="lineNum">     119 </span>            :         // For bound member pointers
<span class="lineNum">     120 </span>            :         struct bound_memfunc_ptr_t {
<span class="lineNum">     121 </span>            :           void (X::*memfunc_ptr)(int);
<span class="lineNum">     122 </span>            :           void* obj_ptr;
<span class="lineNum">     123 </span>            :         } bound_memfunc_ptr;
<span class="lineNum">     124 </span>            : 
<span class="lineNum">     125 </span>            :         // For references to function objects. We explicitly keep
<span class="lineNum">     126 </span>            :         // track of the cv-qualifiers on the object referenced.
<span class="lineNum">     127 </span>            :         struct obj_ref_t {
<span class="lineNum">     128 </span>            :           mutable void* obj_ptr;
<span class="lineNum">     129 </span>            :           bool is_const_qualified;
<span class="lineNum">     130 </span>            :           bool is_volatile_qualified;
<span class="lineNum">     131 </span>            :         } obj_ref;
<span class="lineNum">     132 </span>            : 
<span class="lineNum">     133 </span>            :         // To relax aliasing constraints
<span class="lineNum">     134 </span>            :         mutable char data;
<span class="lineNum">     135 </span>            :       };
<span class="lineNum">     136 </span>            : 
<span class="lineNum">     137 </span>            :       /**
<span class="lineNum">     138 </span>            :        * The unusable class is a placeholder for unused function arguments
<span class="lineNum">     139 </span>            :        * It is also completely unusable except that it constructable from
<span class="lineNum">     140 </span>            :        * anything. This helps compilers without partial specialization to
<span class="lineNum">     141 </span>            :        * handle Boost.Function objects returning void.
<span class="lineNum">     142 </span>            :        */
<span class="lineNum">     143 </span>            :       struct unusable
<span class="lineNum">     144 </span>            :       {
<span class="lineNum">     145 </span>            :         unusable() {}
<span class="lineNum">     146 </span>            :         template&lt;typename T&gt; unusable(const T&amp;) {}
<span class="lineNum">     147 </span>            :       };
<span class="lineNum">     148 </span>            : 
<span class="lineNum">     149 </span>            :       /* Determine the return type. This supports compilers that do not support
<span class="lineNum">     150 </span>            :        * void returns or partial specialization by silently changing the return
<span class="lineNum">     151 </span>            :        * type to &quot;unusable&quot;.
<span class="lineNum">     152 </span>            :        */
<span class="lineNum">     153 </span>            :       template&lt;typename T&gt; struct function_return_type { typedef T type; };
<span class="lineNum">     154 </span>            : 
<span class="lineNum">     155 </span>            :       template&lt;&gt;
<span class="lineNum">     156 </span>            :       struct function_return_type&lt;void&gt;
<span class="lineNum">     157 </span>            :       {
<span class="lineNum">     158 </span>            :         typedef unusable type;
<span class="lineNum">     159 </span>            :       };
<span class="lineNum">     160 </span>            : 
<span class="lineNum">     161 </span>            :       // The operation type to perform on the given functor/function pointer
<span class="lineNum">     162 </span>            :       enum functor_manager_operation_type {
<span class="lineNum">     163 </span>            :         clone_functor_tag,
<span class="lineNum">     164 </span>            :         move_functor_tag,
<span class="lineNum">     165 </span>            :         destroy_functor_tag,
<span class="lineNum">     166 </span>            :         check_functor_type_tag,
<span class="lineNum">     167 </span>            :         get_functor_type_tag
<span class="lineNum">     168 </span>            :       };
<span class="lineNum">     169 </span>            : 
<span class="lineNum">     170 </span>            :       // Tags used to decide between different types of functions
<span class="lineNum">     171 </span>            :       struct function_ptr_tag {};
<span class="lineNum">     172 </span>            :       struct function_obj_tag {};
<span class="lineNum">     173 </span>            :       struct member_ptr_tag {};
<span class="lineNum">     174 </span>            :       struct function_obj_ref_tag {};
<span class="lineNum">     175 </span>            : 
<span class="lineNum">     176 </span>            :       template&lt;typename F&gt;
<span class="lineNum">     177 </span>            :       class get_function_tag
<span class="lineNum">     178 </span>            :       {
<span class="lineNum">     179 </span>            :         typedef typename mpl::if_c&lt;(is_pointer&lt;F&gt;::value),
<span class="lineNum">     180 </span>            :                                    function_ptr_tag,
<span class="lineNum">     181 </span>            :                                    function_obj_tag&gt;::type ptr_or_obj_tag;
<span class="lineNum">     182 </span>            : 
<span class="lineNum">     183 </span>            :         typedef typename mpl::if_c&lt;(is_member_pointer&lt;F&gt;::value),
<span class="lineNum">     184 </span>            :                                    member_ptr_tag,
<span class="lineNum">     185 </span>            :                                    ptr_or_obj_tag&gt;::type ptr_or_obj_or_mem_tag;
<span class="lineNum">     186 </span>            : 
<span class="lineNum">     187 </span>            :         typedef typename mpl::if_c&lt;(is_reference_wrapper&lt;F&gt;::value),
<span class="lineNum">     188 </span>            :                                    function_obj_ref_tag,
<span class="lineNum">     189 </span>            :                                    ptr_or_obj_or_mem_tag&gt;::type or_ref_tag;
<span class="lineNum">     190 </span>            : 
<span class="lineNum">     191 </span>            :       public:
<span class="lineNum">     192 </span>            :         typedef or_ref_tag type;
<span class="lineNum">     193 </span>            :       };
<span class="lineNum">     194 </span>            : 
<span class="lineNum">     195 </span>            :       // The trivial manager does nothing but return the same pointer (if we
<span class="lineNum">     196 </span>            :       // are cloning) or return the null pointer (if we are deleting).
<span class="lineNum">     197 </span>            :       template&lt;typename F&gt;
<span class="lineNum">     198 </span>            :       struct reference_manager
<span class="lineNum">     199 </span>            :       {
<span class="lineNum">     200 </span>            :         static inline void
<span class="lineNum">     201 </span>            :         manage(const function_buffer&amp; in_buffer, function_buffer&amp; out_buffer, 
<span class="lineNum">     202 </span>            :                functor_manager_operation_type op)
<span class="lineNum">     203 </span>            :         {
<span class="lineNum">     204 </span>            :           switch (op) {
<span class="lineNum">     205 </span>            :           case clone_functor_tag: 
<span class="lineNum">     206 </span>            :             out_buffer.obj_ref = in_buffer.obj_ref;
<span class="lineNum">     207 </span>            :             return;
<span class="lineNum">     208 </span>            : 
<span class="lineNum">     209 </span>            :           case move_functor_tag:
<span class="lineNum">     210 </span>            :             out_buffer.obj_ref = in_buffer.obj_ref;
<span class="lineNum">     211 </span>            :             in_buffer.obj_ref.obj_ptr = 0;
<span class="lineNum">     212 </span>            :             return;
<span class="lineNum">     213 </span>            : 
<span class="lineNum">     214 </span>            :           case destroy_functor_tag:
<span class="lineNum">     215 </span>            :             out_buffer.obj_ref.obj_ptr = 0;
<span class="lineNum">     216 </span>            :             return;
<span class="lineNum">     217 </span>            : 
<span class="lineNum">     218 </span>            :           case check_functor_type_tag:
<span class="lineNum">     219 </span>            :             {
<span class="lineNum">     220 </span>            :               const detail::sp_typeinfo&amp; check_type 
<span class="lineNum">     221 </span>            :                 = *out_buffer.type.type;
<span class="lineNum">     222 </span>            : 
<span class="lineNum">     223 </span>            :               // Check whether we have the same type. We can add
<span class="lineNum">     224 </span>            :               // cv-qualifiers, but we can't take them away.
<span class="lineNum">     225 </span>            :               if (BOOST_FUNCTION_COMPARE_TYPE_ID(check_type, BOOST_SP_TYPEID(F))
<span class="lineNum">     226 </span>            :                   &amp;&amp; (!in_buffer.obj_ref.is_const_qualified 
<span class="lineNum">     227 </span>            :                       || out_buffer.type.const_qualified)
<span class="lineNum">     228 </span>            :                   &amp;&amp; (!in_buffer.obj_ref.is_volatile_qualified
<span class="lineNum">     229 </span>            :                       || out_buffer.type.volatile_qualified))
<span class="lineNum">     230 </span>            :                 out_buffer.obj_ptr = in_buffer.obj_ref.obj_ptr;
<span class="lineNum">     231 </span>            :               else
<span class="lineNum">     232 </span>            :                 out_buffer.obj_ptr = 0;
<span class="lineNum">     233 </span>            :             }
<span class="lineNum">     234 </span>            :             return;
<span class="lineNum">     235 </span>            : 
<span class="lineNum">     236 </span>            :           case get_functor_type_tag:
<span class="lineNum">     237 </span>            :             out_buffer.type.type = &amp;BOOST_SP_TYPEID(F);
<span class="lineNum">     238 </span>            :             out_buffer.type.const_qualified = in_buffer.obj_ref.is_const_qualified;
<span class="lineNum">     239 </span>            :             out_buffer.type.volatile_qualified = in_buffer.obj_ref.is_volatile_qualified;
<span class="lineNum">     240 </span>            :             return;
<span class="lineNum">     241 </span>            :           }
<span class="lineNum">     242 </span>            :         }
<span class="lineNum">     243 </span>            :       };
<span class="lineNum">     244 </span>            : 
<span class="lineNum">     245 </span>            :       /**
<span class="lineNum">     246 </span>            :        * Determine if boost::function can use the small-object
<span class="lineNum">     247 </span>            :        * optimization with the function object type F.
<span class="lineNum">     248 </span>            :        */
<span class="lineNum">     249 </span>            :       template&lt;typename F&gt;
<span class="lineNum">     250 </span>            :       struct function_allows_small_object_optimization
<span class="lineNum">     251 </span>            :       {
<span class="lineNum">     252 </span>            :         BOOST_STATIC_CONSTANT
<span class="lineNum">     253 </span>            :           (bool, 
<span class="lineNum">     254 </span>            :            value = ((sizeof(F) &lt;= sizeof(function_buffer) &amp;&amp;
<span class="lineNum">     255 </span>            :                      (alignment_of&lt;function_buffer&gt;::value 
<span class="lineNum">     256 </span>            :                       % alignment_of&lt;F&gt;::value == 0))));
<span class="lineNum">     257 </span>            :       };
<span class="lineNum">     258 </span>            : 
<span class="lineNum">     259 </span>            :       template &lt;typename F,typename A&gt;
<span class="lineNum">     260 </span>            :       struct functor_wrapper: public F, public A
<span class="lineNum">     261 </span>            :       {
<span class="lineNum">     262 </span>            :         functor_wrapper( F f, A a ):
<span class="lineNum">     263 </span>            :           F(f),
<span class="lineNum">     264 </span>            :           A(a)
<span class="lineNum">     265 </span>            :         {
<span class="lineNum">     266 </span>            :         }
<span class="lineNum">     267 </span>            :         
<span class="lineNum">     268 </span>            :         functor_wrapper(const functor_wrapper&amp; f) :
<span class="lineNum">     269 </span>            :           F(static_cast&lt;const F&amp;&gt;(f)),
<span class="lineNum">     270 </span>            :           A(static_cast&lt;const A&amp;&gt;(f))
<span class="lineNum">     271 </span>            :         {
<span class="lineNum">     272 </span>            :         }
<span class="lineNum">     273 </span>            :       };
<span class="lineNum">     274 </span>            : 
<span class="lineNum">     275 </span>            :       /**
<span class="lineNum">     276 </span>            :        * The functor_manager class contains a static function &quot;manage&quot; which
<span class="lineNum">     277 </span>            :        * can clone or destroy the given function/function object pointer.
<span class="lineNum">     278 </span>            :        */
<span class="lineNum">     279 </span>            :       template&lt;typename Functor&gt;
<span class="lineNum">     280 </span>            :       struct functor_manager_common
<span class="lineNum">     281 </span>            :       {
<span class="lineNum">     282 </span>            :         typedef Functor functor_type;
<span class="lineNum">     283 </span>            : 
<span class="lineNum">     284 </span>            :         // Function pointers
<span class="lineNum">     285 </span>            :         static inline void
<span class="lineNum">     286 </span>            :         manage_ptr(const function_buffer&amp; in_buffer, function_buffer&amp; out_buffer, 
<span class="lineNum">     287 </span>            :                 functor_manager_operation_type op)
<span class="lineNum">     288 </span>            :         {
<span class="lineNum">     289 </span>            :           if (op == clone_functor_tag)
<span class="lineNum">     290 </span>            :             out_buffer.func_ptr = in_buffer.func_ptr;
<span class="lineNum">     291 </span>            :           else if (op == move_functor_tag) {
<span class="lineNum">     292 </span>            :             out_buffer.func_ptr = in_buffer.func_ptr;
<span class="lineNum">     293 </span>            :             in_buffer.func_ptr = 0;
<span class="lineNum">     294 </span>            :           } else if (op == destroy_functor_tag)
<span class="lineNum">     295 </span>            :             out_buffer.func_ptr = 0;
<span class="lineNum">     296 </span>            :           else if (op == check_functor_type_tag) {
<span class="lineNum">     297 </span>            :             const boost::detail::sp_typeinfo&amp; check_type
<span class="lineNum">     298 </span>            :               = *out_buffer.type.type;
<span class="lineNum">     299 </span>            :             if (BOOST_FUNCTION_COMPARE_TYPE_ID(check_type, BOOST_SP_TYPEID(Functor)))
<span class="lineNum">     300 </span>            :               out_buffer.obj_ptr = &amp;in_buffer.func_ptr;
<span class="lineNum">     301 </span>            :             else
<span class="lineNum">     302 </span>            :               out_buffer.obj_ptr = 0;
<span class="lineNum">     303 </span>            :           } else /* op == get_functor_type_tag */ {
<span class="lineNum">     304 </span>            :             out_buffer.type.type = &amp;BOOST_SP_TYPEID(Functor);
<span class="lineNum">     305 </span>            :             out_buffer.type.const_qualified = false;
<span class="lineNum">     306 </span>            :             out_buffer.type.volatile_qualified = false;
<span class="lineNum">     307 </span>            :           }
<span class="lineNum">     308 </span>            :         }
<span class="lineNum">     309 </span>            : 
<a name="310"><span class="lineNum">     310 </span>            :         // Function objects that fit in the small-object buffer.</a>
<span class="lineNum">     311 </span>            :         static inline void
<span class="lineNum">     312 </span><span class="lineNoCov">          0 :         manage_small(const function_buffer&amp; in_buffer, function_buffer&amp; out_buffer, </span>
<span class="lineNum">     313 </span>            :                 functor_manager_operation_type op)
<span class="lineNum">     314 </span>            :         {
<span class="lineNum">     315 </span><span class="lineNoCov">          0 :           if (op == clone_functor_tag || op == move_functor_tag) {</span>
<span class="lineNum">     316 </span>            :             const functor_type* in_functor = 
<span class="lineNum">     317 </span>            :               reinterpret_cast&lt;const functor_type*&gt;(&amp;in_buffer.data);
<span class="lineNum">     318 </span><span class="lineNoCov">          0 :             new (reinterpret_cast&lt;void*&gt;(&amp;out_buffer.data)) functor_type(*in_functor);</span>
<span class="lineNum">     319 </span>            : 
<span class="lineNum">     320 </span>            :             if (op == move_functor_tag) {
<span class="lineNum">     321 </span>            :               functor_type* f = reinterpret_cast&lt;functor_type*&gt;(&amp;in_buffer.data);
<span class="lineNum">     322 </span>            :               (void)f; // suppress warning about the value of f not being used (MSVC)
<span class="lineNum">     323 </span>            :               f-&gt;~Functor();
<span class="lineNum">     324 </span>            :             }
<span class="lineNum">     325 </span><span class="lineNoCov">          0 :           } else if (op == destroy_functor_tag) {</span>
<span class="lineNum">     326 </span>            :             // Some compilers (Borland, vc6, ...) are unhappy with ~functor_type.
<span class="lineNum">     327 </span>            :              functor_type* f = reinterpret_cast&lt;functor_type*&gt;(&amp;out_buffer.data);
<span class="lineNum">     328 </span>            :              (void)f; // suppress warning about the value of f not being used (MSVC)
<span class="lineNum">     329 </span>            :              f-&gt;~Functor();
<span class="lineNum">     330 </span><span class="lineNoCov">          0 :           } else if (op == check_functor_type_tag) {</span>
<span class="lineNum">     331 </span>            :             const detail::sp_typeinfo&amp; check_type 
<span class="lineNum">     332 </span><span class="lineNoCov">          0 :               = *out_buffer.type.type;</span>
<span class="lineNum">     333 </span><span class="lineNoCov">          0 :             if (BOOST_FUNCTION_COMPARE_TYPE_ID(check_type, BOOST_SP_TYPEID(Functor)))</span>
<span class="lineNum">     334 </span><span class="lineNoCov">          0 :               out_buffer.obj_ptr = &amp;in_buffer.data;</span>
<span class="lineNum">     335 </span>            :             else
<span class="lineNum">     336 </span><span class="lineNoCov">          0 :               out_buffer.obj_ptr = 0;</span>
<span class="lineNum">     337 </span>            :           } else /* op == get_functor_type_tag */ {
<span class="lineNum">     338 </span><span class="lineNoCov">          0 :             out_buffer.type.type = &amp;BOOST_SP_TYPEID(Functor);</span>
<span class="lineNum">     339 </span><span class="lineNoCov">          0 :             out_buffer.type.const_qualified = false;</span>
<span class="lineNum">     340 </span><span class="lineNoCov">          0 :             out_buffer.type.volatile_qualified = false;            </span>
<span class="lineNum">     341 </span>            :           }
<span class="lineNum">     342 </span><span class="lineNoCov">          0 :         }</span>
<span class="lineNum">     343 </span>            :       };
<span class="lineNum">     344 </span>            : 
<span class="lineNum">     345 </span>            :       template&lt;typename Functor&gt;
<span class="lineNum">     346 </span>            :       struct functor_manager
<span class="lineNum">     347 </span>            :       {
<span class="lineNum">     348 </span>            :       private:
<span class="lineNum">     349 </span>            :         typedef Functor functor_type;
<span class="lineNum">     350 </span>            : 
<span class="lineNum">     351 </span>            :         // Function pointers
<span class="lineNum">     352 </span>            :         static inline void
<span class="lineNum">     353 </span>            :         manager(const function_buffer&amp; in_buffer, function_buffer&amp; out_buffer, 
<span class="lineNum">     354 </span>            :                 functor_manager_operation_type op, function_ptr_tag)
<span class="lineNum">     355 </span>            :         {
<span class="lineNum">     356 </span>            :           functor_manager_common&lt;Functor&gt;::manage_ptr(in_buffer,out_buffer,op);
<span class="lineNum">     357 </span>            :         }
<span class="lineNum">     358 </span>            : 
<span class="lineNum">     359 </span>            :         // Function objects that fit in the small-object buffer.
<span class="lineNum">     360 </span>            :         static inline void
<span class="lineNum">     361 </span>            :         manager(const function_buffer&amp; in_buffer, function_buffer&amp; out_buffer, 
<span class="lineNum">     362 </span>            :                 functor_manager_operation_type op, mpl::true_)
<span class="lineNum">     363 </span>            :         {
<span class="lineNum">     364 </span><span class="lineNoCov">          0 :           functor_manager_common&lt;Functor&gt;::manage_small(in_buffer,out_buffer,op);</span>
<span class="lineNum">     365 </span>            :         }
<span class="lineNum">     366 </span>            :         
<a name="367"><span class="lineNum">     367 </span>            :         // Function objects that require heap allocation</a>
<span class="lineNum">     368 </span>            :         static inline void
<span class="lineNum">     369 </span><span class="lineCov">          9 :         manager(const function_buffer&amp; in_buffer, function_buffer&amp; out_buffer, </span>
<span class="lineNum">     370 </span>            :                 functor_manager_operation_type op, mpl::false_)
<span class="lineNum">     371 </span>            :         {
<span class="lineNum">     372 </span><span class="lineCov">          9 :           if (op == clone_functor_tag) {</span>
<span class="lineNum">     373 </span>            :             // Clone the functor
<span class="lineNum">     374 </span>            :             // GCC 2.95.3 gets the CV qualifiers wrong here, so we
<span class="lineNum">     375 </span>            :             // can't do the static_cast that we should do.
<span class="lineNum">     376 </span>            :             // jewillco: Changing this to static_cast because GCC 2.95.3 is
<span class="lineNum">     377 </span>            :             // obsolete.
<span class="lineNum">     378 </span>            :             const functor_type* f =
<span class="lineNum">     379 </span><span class="lineCov">          4 :               static_cast&lt;const functor_type*&gt;(in_buffer.obj_ptr);</span>
<span class="lineNum">     380 </span><span class="lineCov">          4 :             functor_type* new_f = new functor_type(*f);</span>
<span class="lineNum">     381 </span><span class="lineCov">          4 :             out_buffer.obj_ptr = new_f;</span>
<span class="lineNum">     382 </span><span class="lineCov">          5 :           } else if (op == move_functor_tag) {</span>
<span class="lineNum">     383 </span><span class="lineNoCov">          0 :             out_buffer.obj_ptr = in_buffer.obj_ptr;</span>
<span class="lineNum">     384 </span><span class="lineNoCov">          0 :             in_buffer.obj_ptr = 0;</span>
<span class="lineNum">     385 </span><span class="lineCov">          5 :           } else if (op == destroy_functor_tag) {</span>
<span class="lineNum">     386 </span>            :             /* Cast from the void pointer to the functor pointer type */
<span class="lineNum">     387 </span>            :             functor_type* f =
<span class="lineNum">     388 </span><span class="lineCov">          5 :               static_cast&lt;functor_type*&gt;(out_buffer.obj_ptr);</span>
<span class="lineNum">     389 </span><span class="lineCov">         10 :             delete f;</span>
<span class="lineNum">     390 </span><span class="lineCov">          5 :             out_buffer.obj_ptr = 0;</span>
<span class="lineNum">     391 </span><span class="lineNoCov">          0 :           } else if (op == check_functor_type_tag) {</span>
<span class="lineNum">     392 </span>            :             const detail::sp_typeinfo&amp; check_type
<span class="lineNum">     393 </span><span class="lineNoCov">          0 :               = *out_buffer.type.type;</span>
<span class="lineNum">     394 </span><span class="lineNoCov">          0 :             if (BOOST_FUNCTION_COMPARE_TYPE_ID(check_type, BOOST_SP_TYPEID(Functor)))</span>
<span class="lineNum">     395 </span><span class="lineNoCov">          0 :               out_buffer.obj_ptr = in_buffer.obj_ptr;</span>
<span class="lineNum">     396 </span>            :             else
<span class="lineNum">     397 </span><span class="lineNoCov">          0 :               out_buffer.obj_ptr = 0;</span>
<span class="lineNum">     398 </span>            :           } else /* op == get_functor_type_tag */ {
<span class="lineNum">     399 </span><span class="lineNoCov">          0 :             out_buffer.type.type = &amp;BOOST_SP_TYPEID(Functor);</span>
<span class="lineNum">     400 </span><span class="lineNoCov">          0 :             out_buffer.type.const_qualified = false;</span>
<span class="lineNum">     401 </span><span class="lineNoCov">          0 :             out_buffer.type.volatile_qualified = false;</span>
<span class="lineNum">     402 </span>            :           }
<span class="lineNum">     403 </span><span class="lineCov">          9 :         }</span>
<span class="lineNum">     404 </span>            : 
<span class="lineNum">     405 </span>            :         // For function objects, we determine whether the function
<span class="lineNum">     406 </span>            :         // object can use the small-object optimization buffer or
<span class="lineNum">     407 </span>            :         // whether we need to allocate it on the heap.
<span class="lineNum">     408 </span>            :         static inline void
<span class="lineNum">     409 </span>            :         manager(const function_buffer&amp; in_buffer, function_buffer&amp; out_buffer, 
<span class="lineNum">     410 </span>            :                 functor_manager_operation_type op, function_obj_tag)
<span class="lineNum">     411 </span>            :         {
<span class="lineNum">     412 </span><span class="lineCov">          9 :           manager(in_buffer, out_buffer, op,</span>
<span class="lineNum">     413 </span>            :                   mpl::bool_&lt;(function_allows_small_object_optimization&lt;functor_type&gt;::value)&gt;());
<span class="lineNum">     414 </span>            :         }
<span class="lineNum">     415 </span>            : 
<span class="lineNum">     416 </span>            :         // For member pointers, we use the small-object optimization buffer.
<span class="lineNum">     417 </span>            :         static inline void
<span class="lineNum">     418 </span>            :         manager(const function_buffer&amp; in_buffer, function_buffer&amp; out_buffer, 
<span class="lineNum">     419 </span>            :                 functor_manager_operation_type op, member_ptr_tag)
<span class="lineNum">     420 </span>            :         {
<span class="lineNum">     421 </span>            :           manager(in_buffer, out_buffer, op, mpl::true_());
<span class="lineNum">     422 </span>            :         }
<span class="lineNum">     423 </span>            : 
<span class="lineNum">     424 </span>            :       public:
<span class="lineNum">     425 </span>            :         /* Dispatch to an appropriate manager based on whether we have a
<a name="426"><span class="lineNum">     426 </span>            :            function pointer or a function object pointer. */</a>
<span class="lineNum">     427 </span>            :         static inline void
<span class="lineNum">     428 </span><span class="lineCov">          9 :         manage(const function_buffer&amp; in_buffer, function_buffer&amp; out_buffer, </span>
<span class="lineNum">     429 </span>            :                functor_manager_operation_type op)
<span class="lineNum">     430 </span>            :         {
<span class="lineNum">     431 </span>            :           typedef typename get_function_tag&lt;functor_type&gt;::type tag_type;
<span class="lineNum">     432 </span><span class="lineCov">          9 :           switch (op) {</span>
<span class="lineNum">     433 </span>            :           case get_functor_type_tag:
<span class="lineNum">     434 </span><span class="lineNoCov">          0 :             out_buffer.type.type = &amp;BOOST_SP_TYPEID(functor_type);</span>
<span class="lineNum">     435 </span><span class="lineNoCov">          0 :             out_buffer.type.const_qualified = false;</span>
<span class="lineNum">     436 </span><span class="lineNoCov">          0 :             out_buffer.type.volatile_qualified = false;</span>
<span class="lineNum">     437 </span><span class="lineNoCov">          0 :             return;</span>
<span class="lineNum">     438 </span>            : 
<span class="lineNum">     439 </span>            :           default:
<span class="lineNum">     440 </span>            :             manager(in_buffer, out_buffer, op, tag_type());
<span class="lineNum">     441 </span>            :             return;
<span class="lineNum">     442 </span>            :           }
<span class="lineNum">     443 </span>            :         }
<span class="lineNum">     444 </span>            :       };
<span class="lineNum">     445 </span>            : 
<span class="lineNum">     446 </span>            :       template&lt;typename Functor, typename Allocator&gt;
<span class="lineNum">     447 </span>            :       struct functor_manager_a
<span class="lineNum">     448 </span>            :       {
<span class="lineNum">     449 </span>            :       private:
<span class="lineNum">     450 </span>            :         typedef Functor functor_type;
<span class="lineNum">     451 </span>            : 
<span class="lineNum">     452 </span>            :         // Function pointers
<span class="lineNum">     453 </span>            :         static inline void
<span class="lineNum">     454 </span>            :         manager(const function_buffer&amp; in_buffer, function_buffer&amp; out_buffer, 
<span class="lineNum">     455 </span>            :                 functor_manager_operation_type op, function_ptr_tag)
<span class="lineNum">     456 </span>            :         {
<span class="lineNum">     457 </span>            :           functor_manager_common&lt;Functor&gt;::manage_ptr(in_buffer,out_buffer,op);
<span class="lineNum">     458 </span>            :         }
<span class="lineNum">     459 </span>            : 
<span class="lineNum">     460 </span>            :         // Function objects that fit in the small-object buffer.
<span class="lineNum">     461 </span>            :         static inline void
<span class="lineNum">     462 </span>            :         manager(const function_buffer&amp; in_buffer, function_buffer&amp; out_buffer, 
<span class="lineNum">     463 </span>            :                 functor_manager_operation_type op, mpl::true_)
<span class="lineNum">     464 </span>            :         {
<span class="lineNum">     465 </span>            :           functor_manager_common&lt;Functor&gt;::manage_small(in_buffer,out_buffer,op);
<span class="lineNum">     466 </span>            :         }
<span class="lineNum">     467 </span>            :         
<span class="lineNum">     468 </span>            :         // Function objects that require heap allocation
<span class="lineNum">     469 </span>            :         static inline void
<span class="lineNum">     470 </span>            :         manager(const function_buffer&amp; in_buffer, function_buffer&amp; out_buffer, 
<span class="lineNum">     471 </span>            :                 functor_manager_operation_type op, mpl::false_)
<span class="lineNum">     472 </span>            :         {
<span class="lineNum">     473 </span>            :           typedef functor_wrapper&lt;Functor,Allocator&gt; functor_wrapper_type;
<span class="lineNum">     474 </span>            :           typedef typename Allocator::template rebind&lt;functor_wrapper_type&gt;::other
<span class="lineNum">     475 </span>            :             wrapper_allocator_type;
<span class="lineNum">     476 </span>            :           typedef typename wrapper_allocator_type::pointer wrapper_allocator_pointer_type;
<span class="lineNum">     477 </span>            : 
<span class="lineNum">     478 </span>            :           if (op == clone_functor_tag) {
<span class="lineNum">     479 </span>            :             // Clone the functor
<span class="lineNum">     480 </span>            :             // GCC 2.95.3 gets the CV qualifiers wrong here, so we
<span class="lineNum">     481 </span>            :             // can't do the static_cast that we should do.
<span class="lineNum">     482 </span>            :             const functor_wrapper_type* f =
<span class="lineNum">     483 </span>            :               static_cast&lt;const functor_wrapper_type*&gt;(in_buffer.obj_ptr);
<span class="lineNum">     484 </span>            :             wrapper_allocator_type wrapper_allocator(static_cast&lt;Allocator const &amp;&gt;(*f));
<span class="lineNum">     485 </span>            :             wrapper_allocator_pointer_type copy = wrapper_allocator.allocate(1);
<span class="lineNum">     486 </span>            :             wrapper_allocator.construct(copy, *f);
<span class="lineNum">     487 </span>            : 
<span class="lineNum">     488 </span>            :             // Get back to the original pointer type
<span class="lineNum">     489 </span>            :             functor_wrapper_type* new_f = static_cast&lt;functor_wrapper_type*&gt;(copy);
<span class="lineNum">     490 </span>            :             out_buffer.obj_ptr = new_f;
<span class="lineNum">     491 </span>            :           } else if (op == move_functor_tag) {
<span class="lineNum">     492 </span>            :             out_buffer.obj_ptr = in_buffer.obj_ptr;
<span class="lineNum">     493 </span>            :             in_buffer.obj_ptr = 0;
<span class="lineNum">     494 </span>            :           } else if (op == destroy_functor_tag) {
<span class="lineNum">     495 </span>            :             /* Cast from the void pointer to the functor_wrapper_type */
<span class="lineNum">     496 </span>            :             functor_wrapper_type* victim =
<span class="lineNum">     497 </span>            :               static_cast&lt;functor_wrapper_type*&gt;(in_buffer.obj_ptr);
<span class="lineNum">     498 </span>            :             wrapper_allocator_type wrapper_allocator(static_cast&lt;Allocator const &amp;&gt;(*victim));
<span class="lineNum">     499 </span>            :             wrapper_allocator.destroy(victim);
<span class="lineNum">     500 </span>            :             wrapper_allocator.deallocate(victim,1);
<span class="lineNum">     501 </span>            :             out_buffer.obj_ptr = 0;
<span class="lineNum">     502 </span>            :           } else if (op == check_functor_type_tag) {
<span class="lineNum">     503 </span>            :             const detail::sp_typeinfo&amp; check_type 
<span class="lineNum">     504 </span>            :               = *out_buffer.type.type;
<span class="lineNum">     505 </span>            :             if (BOOST_FUNCTION_COMPARE_TYPE_ID(check_type, BOOST_SP_TYPEID(Functor)))
<span class="lineNum">     506 </span>            :               out_buffer.obj_ptr = in_buffer.obj_ptr;
<span class="lineNum">     507 </span>            :             else
<span class="lineNum">     508 </span>            :               out_buffer.obj_ptr = 0;
<span class="lineNum">     509 </span>            :           } else /* op == get_functor_type_tag */ {
<span class="lineNum">     510 </span>            :             out_buffer.type.type = &amp;BOOST_SP_TYPEID(Functor);
<span class="lineNum">     511 </span>            :             out_buffer.type.const_qualified = false;
<span class="lineNum">     512 </span>            :             out_buffer.type.volatile_qualified = false;
<span class="lineNum">     513 </span>            :           }
<span class="lineNum">     514 </span>            :         }
<span class="lineNum">     515 </span>            : 
<span class="lineNum">     516 </span>            :         // For function objects, we determine whether the function
<span class="lineNum">     517 </span>            :         // object can use the small-object optimization buffer or
<span class="lineNum">     518 </span>            :         // whether we need to allocate it on the heap.
<span class="lineNum">     519 </span>            :         static inline void
<span class="lineNum">     520 </span>            :         manager(const function_buffer&amp; in_buffer, function_buffer&amp; out_buffer, 
<span class="lineNum">     521 </span>            :                 functor_manager_operation_type op, function_obj_tag)
<span class="lineNum">     522 </span>            :         {
<span class="lineNum">     523 </span>            :           manager(in_buffer, out_buffer, op,
<span class="lineNum">     524 </span>            :                   mpl::bool_&lt;(function_allows_small_object_optimization&lt;functor_type&gt;::value)&gt;());
<span class="lineNum">     525 </span>            :         }
<span class="lineNum">     526 </span>            : 
<span class="lineNum">     527 </span>            :       public:
<span class="lineNum">     528 </span>            :         /* Dispatch to an appropriate manager based on whether we have a
<span class="lineNum">     529 </span>            :            function pointer or a function object pointer. */
<span class="lineNum">     530 </span>            :         static inline void
<span class="lineNum">     531 </span>            :         manage(const function_buffer&amp; in_buffer, function_buffer&amp; out_buffer, 
<span class="lineNum">     532 </span>            :                functor_manager_operation_type op)
<span class="lineNum">     533 </span>            :         {
<span class="lineNum">     534 </span>            :           typedef typename get_function_tag&lt;functor_type&gt;::type tag_type;
<span class="lineNum">     535 </span>            :           switch (op) {
<span class="lineNum">     536 </span>            :           case get_functor_type_tag:
<span class="lineNum">     537 </span>            :             out_buffer.type.type = &amp;BOOST_SP_TYPEID(functor_type);
<span class="lineNum">     538 </span>            :             out_buffer.type.const_qualified = false;
<span class="lineNum">     539 </span>            :             out_buffer.type.volatile_qualified = false;
<span class="lineNum">     540 </span>            :             return;
<span class="lineNum">     541 </span>            : 
<span class="lineNum">     542 </span>            :           default:
<span class="lineNum">     543 </span>            :             manager(in_buffer, out_buffer, op, tag_type());
<span class="lineNum">     544 </span>            :             return;
<span class="lineNum">     545 </span>            :           }
<span class="lineNum">     546 </span>            :         }
<span class="lineNum">     547 </span>            :       };
<span class="lineNum">     548 </span>            : 
<span class="lineNum">     549 </span>            :       // A type that is only used for comparisons against zero
<span class="lineNum">     550 </span>            :       struct useless_clear_type {};
<span class="lineNum">     551 </span>            : 
<span class="lineNum">     552 </span>            : #ifdef BOOST_NO_SFINAE
<span class="lineNum">     553 </span>            :       // These routines perform comparisons between a Boost.Function
<span class="lineNum">     554 </span>            :       // object and an arbitrary function object (when the last
<span class="lineNum">     555 </span>            :       // parameter is mpl::bool_&lt;false&gt;) or against zero (when the
<span class="lineNum">     556 </span>            :       // last parameter is mpl::bool_&lt;true&gt;). They are only necessary
<span class="lineNum">     557 </span>            :       // for compilers that don't support SFINAE.
<span class="lineNum">     558 </span>            :       template&lt;typename Function, typename Functor&gt;
<span class="lineNum">     559 </span>            :         bool
<span class="lineNum">     560 </span>            :         compare_equal(const Function&amp; f, const Functor&amp;, int, mpl::bool_&lt;true&gt;)
<span class="lineNum">     561 </span>            :         { return f.empty(); }
<span class="lineNum">     562 </span>            : 
<span class="lineNum">     563 </span>            :       template&lt;typename Function, typename Functor&gt;
<span class="lineNum">     564 </span>            :         bool
<span class="lineNum">     565 </span>            :         compare_not_equal(const Function&amp; f, const Functor&amp;, int,
<span class="lineNum">     566 </span>            :                           mpl::bool_&lt;true&gt;)
<span class="lineNum">     567 </span>            :         { return !f.empty(); }
<span class="lineNum">     568 </span>            : 
<span class="lineNum">     569 </span>            :       template&lt;typename Function, typename Functor&gt;
<span class="lineNum">     570 </span>            :         bool
<span class="lineNum">     571 </span>            :         compare_equal(const Function&amp; f, const Functor&amp; g, long,
<span class="lineNum">     572 </span>            :                       mpl::bool_&lt;false&gt;)
<span class="lineNum">     573 </span>            :         {
<span class="lineNum">     574 </span>            :           if (const Functor* fp = f.template target&lt;Functor&gt;())
<span class="lineNum">     575 </span>            :             return function_equal(*fp, g);
<span class="lineNum">     576 </span>            :           else return false;
<span class="lineNum">     577 </span>            :         }
<span class="lineNum">     578 </span>            : 
<span class="lineNum">     579 </span>            :       template&lt;typename Function, typename Functor&gt;
<span class="lineNum">     580 </span>            :         bool
<span class="lineNum">     581 </span>            :         compare_equal(const Function&amp; f, const reference_wrapper&lt;Functor&gt;&amp; g,
<span class="lineNum">     582 </span>            :                       int, mpl::bool_&lt;false&gt;)
<span class="lineNum">     583 </span>            :         {
<span class="lineNum">     584 </span>            :           if (const Functor* fp = f.template target&lt;Functor&gt;())
<span class="lineNum">     585 </span>            :             return fp == g.get_pointer();
<span class="lineNum">     586 </span>            :           else return false;
<span class="lineNum">     587 </span>            :         }
<span class="lineNum">     588 </span>            : 
<span class="lineNum">     589 </span>            :       template&lt;typename Function, typename Functor&gt;
<span class="lineNum">     590 </span>            :         bool
<span class="lineNum">     591 </span>            :         compare_not_equal(const Function&amp; f, const Functor&amp; g, long,
<span class="lineNum">     592 </span>            :                           mpl::bool_&lt;false&gt;)
<span class="lineNum">     593 </span>            :         {
<span class="lineNum">     594 </span>            :           if (const Functor* fp = f.template target&lt;Functor&gt;())
<span class="lineNum">     595 </span>            :             return !function_equal(*fp, g);
<span class="lineNum">     596 </span>            :           else return true;
<span class="lineNum">     597 </span>            :         }
<span class="lineNum">     598 </span>            : 
<span class="lineNum">     599 </span>            :       template&lt;typename Function, typename Functor&gt;
<span class="lineNum">     600 </span>            :         bool
<span class="lineNum">     601 </span>            :         compare_not_equal(const Function&amp; f,
<span class="lineNum">     602 </span>            :                           const reference_wrapper&lt;Functor&gt;&amp; g, int,
<span class="lineNum">     603 </span>            :                           mpl::bool_&lt;false&gt;)
<span class="lineNum">     604 </span>            :         {
<span class="lineNum">     605 </span>            :           if (const Functor* fp = f.template target&lt;Functor&gt;())
<span class="lineNum">     606 </span>            :             return fp != g.get_pointer();
<span class="lineNum">     607 </span>            :           else return true;
<span class="lineNum">     608 </span>            :         }
<span class="lineNum">     609 </span>            : #endif // BOOST_NO_SFINAE
<span class="lineNum">     610 </span>            : 
<span class="lineNum">     611 </span>            :       /**
<span class="lineNum">     612 </span>            :        * Stores the &quot;manager&quot; portion of the vtable for a
<span class="lineNum">     613 </span>            :        * boost::function object.
<span class="lineNum">     614 </span>            :        */
<span class="lineNum">     615 </span>            :       struct vtable_base
<span class="lineNum">     616 </span>            :       {
<span class="lineNum">     617 </span>            :         void (*manager)(const function_buffer&amp; in_buffer, 
<span class="lineNum">     618 </span>            :                         function_buffer&amp; out_buffer, 
<span class="lineNum">     619 </span>            :                         functor_manager_operation_type op);
<span class="lineNum">     620 </span>            :       };
<span class="lineNum">     621 </span>            :     } // end namespace function
<span class="lineNum">     622 </span>            :   } // end namespace detail
<span class="lineNum">     623 </span>            : 
<span class="lineNum">     624 </span>            : /**
<span class="lineNum">     625 </span>            :  * The function_base class contains the basic elements needed for the
<span class="lineNum">     626 </span>            :  * function1, function2, function3, etc. classes. It is common to all
<span class="lineNum">     627 </span>            :  * functions (and as such can be used to tell if we have one of the
<span class="lineNum">     628 </span>            :  * functionN objects).
<span class="lineNum">     629 </span>            :  */
<span class="lineNum">     630 </span>            : class function_base
<span class="lineNum">     631 </span>            : {
<span class="lineNum">     632 </span>            : public:
<span class="lineNum">     633 </span><span class="lineCov">         14 :   function_base() : vtable(0) { }</span>
<span class="lineNum">     634 </span>            : 
<span class="lineNum">     635 </span>            :   /** Determine if the function is empty (i.e., has no target). */
<span class="lineNum">     636 </span>            :   bool empty() const { return !vtable; }
<span class="lineNum">     637 </span>            : 
<span class="lineNum">     638 </span>            :   /** Retrieve the type of the stored function object, or BOOST_SP_TYPEID(void)
<span class="lineNum">     639 </span>            :       if this is empty. */
<span class="lineNum">     640 </span>            :   const detail::sp_typeinfo&amp; target_type() const
<span class="lineNum">     641 </span>            :   {
<span class="lineNum">     642 </span>            :     if (!vtable) return BOOST_SP_TYPEID(void);
<span class="lineNum">     643 </span>            : 
<span class="lineNum">     644 </span>            :     detail::function::function_buffer type;
<span class="lineNum">     645 </span>            :     get_vtable()-&gt;manager(functor, type, detail::function::get_functor_type_tag);
<span class="lineNum">     646 </span>            :     return *type.type.type;
<span class="lineNum">     647 </span>            :   }
<span class="lineNum">     648 </span>            : 
<span class="lineNum">     649 </span>            :   template&lt;typename Functor&gt;
<span class="lineNum">     650 </span>            :     Functor* target()
<span class="lineNum">     651 </span>            :     {
<span class="lineNum">     652 </span>            :       if (!vtable) return 0;
<span class="lineNum">     653 </span>            : 
<span class="lineNum">     654 </span>            :       detail::function::function_buffer type_result;
<span class="lineNum">     655 </span>            :       type_result.type.type = &amp;BOOST_SP_TYPEID(Functor);
<span class="lineNum">     656 </span>            :       type_result.type.const_qualified = is_const&lt;Functor&gt;::value;
<span class="lineNum">     657 </span>            :       type_result.type.volatile_qualified = is_volatile&lt;Functor&gt;::value;
<span class="lineNum">     658 </span>            :       get_vtable()-&gt;manager(functor, type_result, 
<span class="lineNum">     659 </span>            :                       detail::function::check_functor_type_tag);
<span class="lineNum">     660 </span>            :       return static_cast&lt;Functor*&gt;(type_result.obj_ptr);
<span class="lineNum">     661 </span>            :     }
<span class="lineNum">     662 </span>            : 
<span class="lineNum">     663 </span>            :   template&lt;typename Functor&gt;
<span class="lineNum">     664 </span>            :     const Functor* target() const
<span class="lineNum">     665 </span>            :     {
<span class="lineNum">     666 </span>            :       if (!vtable) return 0;
<span class="lineNum">     667 </span>            : 
<span class="lineNum">     668 </span>            :       detail::function::function_buffer type_result;
<span class="lineNum">     669 </span>            :       type_result.type.type = &amp;BOOST_SP_TYPEID(Functor);
<span class="lineNum">     670 </span>            :       type_result.type.const_qualified = true;
<span class="lineNum">     671 </span>            :       type_result.type.volatile_qualified = is_volatile&lt;Functor&gt;::value;
<span class="lineNum">     672 </span>            :       get_vtable()-&gt;manager(functor, type_result, 
<span class="lineNum">     673 </span>            :                       detail::function::check_functor_type_tag);
<span class="lineNum">     674 </span>            :       // GCC 2.95.3 gets the CV qualifiers wrong here, so we
<span class="lineNum">     675 </span>            :       // can't do the static_cast that we should do.
<span class="lineNum">     676 </span>            :       return static_cast&lt;const Functor*&gt;(type_result.obj_ptr);
<span class="lineNum">     677 </span>            :     }
<span class="lineNum">     678 </span>            : 
<span class="lineNum">     679 </span>            :   template&lt;typename F&gt;
<span class="lineNum">     680 </span>            :     bool contains(const F&amp; f) const
<span class="lineNum">     681 </span>            :     {
<span class="lineNum">     682 </span>            :       if (const F* fp = this-&gt;template target&lt;F&gt;())
<span class="lineNum">     683 </span>            :       {
<span class="lineNum">     684 </span>            :         return function_equal(*fp, f);
<span class="lineNum">     685 </span>            :       } else {
<span class="lineNum">     686 </span>            :         return false;
<span class="lineNum">     687 </span>            :       }
<span class="lineNum">     688 </span>            :     }
<span class="lineNum">     689 </span>            : 
<span class="lineNum">     690 </span>            : #if defined(__GNUC__) &amp;&amp; __GNUC__ == 3 &amp;&amp; __GNUC_MINOR__ &lt;= 3
<span class="lineNum">     691 </span>            :   // GCC 3.3 and newer cannot copy with the global operator==, due to
<span class="lineNum">     692 </span>            :   // problems with instantiation of function return types before it
<span class="lineNum">     693 </span>            :   // has been verified that the argument types match up.
<span class="lineNum">     694 </span>            :   template&lt;typename Functor&gt;
<span class="lineNum">     695 </span>            :     BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor, bool)
<span class="lineNum">     696 </span>            :     operator==(Functor g) const
<span class="lineNum">     697 </span>            :     {
<span class="lineNum">     698 </span>            :       if (const Functor* fp = target&lt;Functor&gt;())
<span class="lineNum">     699 </span>            :         return function_equal(*fp, g);
<span class="lineNum">     700 </span>            :       else return false;
<span class="lineNum">     701 </span>            :     }
<span class="lineNum">     702 </span>            : 
<span class="lineNum">     703 </span>            :   template&lt;typename Functor&gt;
<span class="lineNum">     704 </span>            :     BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor, bool)
<span class="lineNum">     705 </span>            :     operator!=(Functor g) const
<span class="lineNum">     706 </span>            :     {
<span class="lineNum">     707 </span>            :       if (const Functor* fp = target&lt;Functor&gt;())
<span class="lineNum">     708 </span>            :         return !function_equal(*fp, g);
<span class="lineNum">     709 </span>            :       else return true;
<span class="lineNum">     710 </span>            :     }
<span class="lineNum">     711 </span>            : #endif
<span class="lineNum">     712 </span>            : 
<span class="lineNum">     713 </span>            : public: // should be protected, but GCC 2.95.3 will fail to allow access
<span class="lineNum">     714 </span>            :   detail::function::vtable_base* get_vtable() const {
<span class="lineNum">     715 </span>            :     return reinterpret_cast&lt;detail::function::vtable_base*&gt;(
<span class="lineNum">     716 </span>            :              reinterpret_cast&lt;std::size_t&gt;(vtable) &amp; ~static_cast&lt;std::size_t&gt;(0x01));
<span class="lineNum">     717 </span>            :   }
<span class="lineNum">     718 </span>            : 
<span class="lineNum">     719 </span>            :   bool has_trivial_copy_and_destroy() const {
<span class="lineNum">     720 </span><span class="lineCov">         14 :     return reinterpret_cast&lt;std::size_t&gt;(vtable) &amp; 0x01;</span>
<span class="lineNum">     721 </span>            :   }
<span class="lineNum">     722 </span>            : 
<span class="lineNum">     723 </span>            :   detail::function::vtable_base* vtable;
<span class="lineNum">     724 </span>            :   mutable detail::function::function_buffer functor;
<span class="lineNum">     725 </span>            : };
<span class="lineNum">     726 </span>            : 
<span class="lineNum">     727 </span>            : /**
<span class="lineNum">     728 </span>            :  * The bad_function_call exception class is thrown when a boost::function
<a name="729"><span class="lineNum">     729 </span>            :  * object is invoked</a>
<span class="lineNum">     730 </span>            :  */
<span class="lineNum">     731 </span><span class="lineNoCov">          0 : class bad_function_call : public std::runtime_error</span>
<a name="732"><span class="lineNum">     732 </span>            : {</a>
<span class="lineNum">     733 </span>            : public:
<span class="lineNum">     734 </span><span class="lineNoCov">          0 :   bad_function_call() : std::runtime_error(&quot;call to empty boost::function&quot;) {}</span>
<span class="lineNum">     735 </span>            : };
<span class="lineNum">     736 </span>            : 
<span class="lineNum">     737 </span>            : #ifndef BOOST_NO_SFINAE
<span class="lineNum">     738 </span>            : inline bool operator==(const function_base&amp; f,
<span class="lineNum">     739 </span>            :                        detail::function::useless_clear_type*)
<span class="lineNum">     740 </span>            : {
<span class="lineNum">     741 </span>            :   return f.empty();
<span class="lineNum">     742 </span>            : }
<span class="lineNum">     743 </span>            : 
<span class="lineNum">     744 </span>            : inline bool operator!=(const function_base&amp; f,
<span class="lineNum">     745 </span>            :                        detail::function::useless_clear_type*)
<span class="lineNum">     746 </span>            : {
<span class="lineNum">     747 </span>            :   return !f.empty();
<span class="lineNum">     748 </span>            : }
<span class="lineNum">     749 </span>            : 
<span class="lineNum">     750 </span>            : inline bool operator==(detail::function::useless_clear_type*,
<span class="lineNum">     751 </span>            :                        const function_base&amp; f)
<span class="lineNum">     752 </span>            : {
<span class="lineNum">     753 </span>            :   return f.empty();
<span class="lineNum">     754 </span>            : }
<span class="lineNum">     755 </span>            : 
<span class="lineNum">     756 </span>            : inline bool operator!=(detail::function::useless_clear_type*,
<span class="lineNum">     757 </span>            :                        const function_base&amp; f)
<span class="lineNum">     758 </span>            : {
<span class="lineNum">     759 </span>            :   return !f.empty();
<span class="lineNum">     760 </span>            : }
<span class="lineNum">     761 </span>            : #endif
<span class="lineNum">     762 </span>            : 
<span class="lineNum">     763 </span>            : #ifdef BOOST_NO_SFINAE
<span class="lineNum">     764 </span>            : // Comparisons between boost::function objects and arbitrary function objects
<span class="lineNum">     765 </span>            : template&lt;typename Functor&gt;
<span class="lineNum">     766 </span>            :   inline bool operator==(const function_base&amp; f, Functor g)
<span class="lineNum">     767 </span>            :   {
<span class="lineNum">     768 </span>            :     typedef mpl::bool_&lt;(is_integral&lt;Functor&gt;::value)&gt; integral;
<span class="lineNum">     769 </span>            :     return detail::function::compare_equal(f, g, 0, integral());
<span class="lineNum">     770 </span>            :   }
<span class="lineNum">     771 </span>            : 
<span class="lineNum">     772 </span>            : template&lt;typename Functor&gt;
<span class="lineNum">     773 </span>            :   inline bool operator==(Functor g, const function_base&amp; f)
<span class="lineNum">     774 </span>            :   {
<span class="lineNum">     775 </span>            :     typedef mpl::bool_&lt;(is_integral&lt;Functor&gt;::value)&gt; integral;
<span class="lineNum">     776 </span>            :     return detail::function::compare_equal(f, g, 0, integral());
<span class="lineNum">     777 </span>            :   }
<span class="lineNum">     778 </span>            : 
<span class="lineNum">     779 </span>            : template&lt;typename Functor&gt;
<span class="lineNum">     780 </span>            :   inline bool operator!=(const function_base&amp; f, Functor g)
<span class="lineNum">     781 </span>            :   {
<span class="lineNum">     782 </span>            :     typedef mpl::bool_&lt;(is_integral&lt;Functor&gt;::value)&gt; integral;
<span class="lineNum">     783 </span>            :     return detail::function::compare_not_equal(f, g, 0, integral());
<span class="lineNum">     784 </span>            :   }
<span class="lineNum">     785 </span>            : 
<span class="lineNum">     786 </span>            : template&lt;typename Functor&gt;
<span class="lineNum">     787 </span>            :   inline bool operator!=(Functor g, const function_base&amp; f)
<span class="lineNum">     788 </span>            :   {
<span class="lineNum">     789 </span>            :     typedef mpl::bool_&lt;(is_integral&lt;Functor&gt;::value)&gt; integral;
<span class="lineNum">     790 </span>            :     return detail::function::compare_not_equal(f, g, 0, integral());
<span class="lineNum">     791 </span>            :   }
<span class="lineNum">     792 </span>            : #else
<span class="lineNum">     793 </span>            : 
<span class="lineNum">     794 </span>            : #  if !(defined(__GNUC__) &amp;&amp; __GNUC__ == 3 &amp;&amp; __GNUC_MINOR__ &lt;= 3)
<span class="lineNum">     795 </span>            : // Comparisons between boost::function objects and arbitrary function
<span class="lineNum">     796 </span>            : // objects. GCC 3.3 and before has an obnoxious bug that prevents this
<span class="lineNum">     797 </span>            : // from working.
<span class="lineNum">     798 </span>            : template&lt;typename Functor&gt;
<span class="lineNum">     799 </span>            :   BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor, bool)
<span class="lineNum">     800 </span>            :   operator==(const function_base&amp; f, Functor g)
<span class="lineNum">     801 </span>            :   {
<span class="lineNum">     802 </span>            :     if (const Functor* fp = f.template target&lt;Functor&gt;())
<span class="lineNum">     803 </span>            :       return function_equal(*fp, g);
<span class="lineNum">     804 </span>            :     else return false;
<span class="lineNum">     805 </span>            :   }
<span class="lineNum">     806 </span>            : 
<span class="lineNum">     807 </span>            : template&lt;typename Functor&gt;
<span class="lineNum">     808 </span>            :   BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor, bool)
<span class="lineNum">     809 </span>            :   operator==(Functor g, const function_base&amp; f)
<span class="lineNum">     810 </span>            :   {
<span class="lineNum">     811 </span>            :     if (const Functor* fp = f.template target&lt;Functor&gt;())
<span class="lineNum">     812 </span>            :       return function_equal(g, *fp);
<span class="lineNum">     813 </span>            :     else return false;
<span class="lineNum">     814 </span>            :   }
<span class="lineNum">     815 </span>            : 
<span class="lineNum">     816 </span>            : template&lt;typename Functor&gt;
<span class="lineNum">     817 </span>            :   BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor, bool)
<span class="lineNum">     818 </span>            :   operator!=(const function_base&amp; f, Functor g)
<span class="lineNum">     819 </span>            :   {
<span class="lineNum">     820 </span>            :     if (const Functor* fp = f.template target&lt;Functor&gt;())
<span class="lineNum">     821 </span>            :       return !function_equal(*fp, g);
<span class="lineNum">     822 </span>            :     else return true;
<span class="lineNum">     823 </span>            :   }
<span class="lineNum">     824 </span>            : 
<span class="lineNum">     825 </span>            : template&lt;typename Functor&gt;
<span class="lineNum">     826 </span>            :   BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor, bool)
<span class="lineNum">     827 </span>            :   operator!=(Functor g, const function_base&amp; f)
<span class="lineNum">     828 </span>            :   {
<span class="lineNum">     829 </span>            :     if (const Functor* fp = f.template target&lt;Functor&gt;())
<span class="lineNum">     830 </span>            :       return !function_equal(g, *fp);
<span class="lineNum">     831 </span>            :     else return true;
<span class="lineNum">     832 </span>            :   }
<span class="lineNum">     833 </span>            : #  endif
<span class="lineNum">     834 </span>            : 
<span class="lineNum">     835 </span>            : template&lt;typename Functor&gt;
<span class="lineNum">     836 </span>            :   BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor, bool)
<span class="lineNum">     837 </span>            :   operator==(const function_base&amp; f, reference_wrapper&lt;Functor&gt; g)
<span class="lineNum">     838 </span>            :   {
<span class="lineNum">     839 </span>            :     if (const Functor* fp = f.template target&lt;Functor&gt;())
<span class="lineNum">     840 </span>            :       return fp == g.get_pointer();
<span class="lineNum">     841 </span>            :     else return false;
<span class="lineNum">     842 </span>            :   }
<span class="lineNum">     843 </span>            : 
<span class="lineNum">     844 </span>            : template&lt;typename Functor&gt;
<span class="lineNum">     845 </span>            :   BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor, bool)
<span class="lineNum">     846 </span>            :   operator==(reference_wrapper&lt;Functor&gt; g, const function_base&amp; f)
<span class="lineNum">     847 </span>            :   {
<span class="lineNum">     848 </span>            :     if (const Functor* fp = f.template target&lt;Functor&gt;())
<span class="lineNum">     849 </span>            :       return g.get_pointer() == fp;
<span class="lineNum">     850 </span>            :     else return false;
<span class="lineNum">     851 </span>            :   }
<span class="lineNum">     852 </span>            : 
<span class="lineNum">     853 </span>            : template&lt;typename Functor&gt;
<span class="lineNum">     854 </span>            :   BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor, bool)
<span class="lineNum">     855 </span>            :   operator!=(const function_base&amp; f, reference_wrapper&lt;Functor&gt; g)
<span class="lineNum">     856 </span>            :   {
<span class="lineNum">     857 </span>            :     if (const Functor* fp = f.template target&lt;Functor&gt;())
<span class="lineNum">     858 </span>            :       return fp != g.get_pointer();
<span class="lineNum">     859 </span>            :     else return true;
<span class="lineNum">     860 </span>            :   }
<span class="lineNum">     861 </span>            : 
<span class="lineNum">     862 </span>            : template&lt;typename Functor&gt;
<span class="lineNum">     863 </span>            :   BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor, bool)
<span class="lineNum">     864 </span>            :   operator!=(reference_wrapper&lt;Functor&gt; g, const function_base&amp; f)
<span class="lineNum">     865 </span>            :   {
<span class="lineNum">     866 </span>            :     if (const Functor* fp = f.template target&lt;Functor&gt;())
<span class="lineNum">     867 </span>            :       return g.get_pointer() != fp;
<span class="lineNum">     868 </span>            :     else return true;
<span class="lineNum">     869 </span>            :   }
<span class="lineNum">     870 </span>            : 
<span class="lineNum">     871 </span>            : #endif // Compiler supporting SFINAE
<span class="lineNum">     872 </span>            : 
<span class="lineNum">     873 </span>            : namespace detail {
<span class="lineNum">     874 </span>            :   namespace function {
<span class="lineNum">     875 </span>            :     inline bool has_empty_target(const function_base* f)
<span class="lineNum">     876 </span>            :     {
<span class="lineNum">     877 </span>            :       return f-&gt;empty();
<span class="lineNum">     878 </span>            :     }
<span class="lineNum">     879 </span>            : 
<span class="lineNum">     880 </span>            : #if BOOST_WORKAROUND(BOOST_MSVC, &lt;= 1310)
<span class="lineNum">     881 </span>            :     inline bool has_empty_target(const void*)
<span class="lineNum">     882 </span>            :     {
<span class="lineNum">     883 </span>            :       return false;
<a name="884"><span class="lineNum">     884 </span>            :     }</a>
<span class="lineNum">     885 </span>            : #else
<span class="lineNum">     886 </span><span class="lineCov">          2 :     inline bool has_empty_target(...)</span>
<span class="lineNum">     887 </span>            :     {
<span class="lineNum">     888 </span><span class="lineCov">          2 :       return false;</span>
<span class="lineNum">     889 </span>            :     }
<span class="lineNum">     890 </span>            : #endif
<span class="lineNum">     891 </span>            :   } // end namespace function
<span class="lineNum">     892 </span>            : } // end namespace detail
<span class="lineNum">     893 </span>            : } // end namespace boost
<span class="lineNum">     894 </span>            : 
<span class="lineNum">     895 </span>            : #undef BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL
<span class="lineNum">     896 </span>            : #undef BOOST_FUNCTION_COMPARE_TYPE_ID
<span class="lineNum">     897 </span>            : 
<span class="lineNum">     898 </span>            : #if defined(BOOST_MSVC)
<span class="lineNum">     899 </span>            : #   pragma warning( pop )
<span class="lineNum">     900 </span>            : #endif       
<span class="lineNum">     901 </span>            : 
<span class="lineNum">     902 </span>            : #endif // BOOST_FUNCTION_BASE_HEADER
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
    <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LCOV version 1.12</a></td></tr>
  </table>
  <br>

</body>
</html>
